package com.BlogPark.service.ClassificationService.Impl;

import com.BlogPark.mapper.ArticleMapper;
import com.BlogPark.pojo.Article;
import com.BlogPark.service.ClassificationService.ClassificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: MFM
 * @Date: 2022/8/19 - 08 - 19 - 22:27
 * @version: 1.0
 */

@Service("Classification")
public class ClassificationServiceImpl implements ClassificationService {

    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public List<Article> showArticleList(String labels) {
        labels = "%" + labels + "%";
        return articleMapper.selectByLabelsList(labels);
    }
}
